package com.healthy.controller;

import com.healthy.common.Res;

import com.healthy.entity.Doctor;

import com.healthy.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/doctor")
public class DoctorController {

    @Autowired
    DoctorService doctorService;

    @GetMapping("/list")
    public Res cuLIst (Doctor doctor){
        return new Res(1,"成功",doctorService.cuList());
    }

}
